-- GENERATED SPELL FOR [Skeletal Warrior] --


function spell0_48(pUnit, Event) --@Battle Stance,Self--
pUnit:FullCastSpellOnTarget(7165,pUnit)
pUnit:RegisterEvent('Sorts_48', 577, 1)
end

function spell1_48(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(9080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_48', 10329, 1)
end

function Sorts_48(pUnit, Event)
local choix_sorts_48 = math.random(0, 1)
if choix_sorts_48 == 0 then
pUnit:RegisterEvent('spell0_48', 1, 1)
end
if choix_sorts_48 == 1 then
pUnit:RegisterEvent('spell1_48', 1, 1)
end
end

function mob48_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_48', math.random(1500, 3000), 1)
end

function mob48_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob48_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob48_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(48, 1, 'mob48_Action')
RegisterUnitEvent(48, 2, 'mob48_Leave')
RegisterUnitEvent(48, 3, 'mob48_Kill')
RegisterUnitEvent(48, 4, 'mob48_Die')
